#!/usr/local/bin/python3.6
# coding:utf-8
# @Time    : 2019/11/14 17:39
# @Author  : ZhangBing
# @Email   : 18829272841@163.com
# @File    : config.py
# @Software: PyCharm
import os
from datetime import timedelta

DEBUG = True
SECRET_KEY = os.urandom(24)
HOSTNAME = 'localhost'
PORT = '3306'
USERNAME = 'root'
PASSWORD = '123456'
DB = 'test'
DB_URL = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DB)
SQLALCHEMY_DATABASE_URI = DB_URL
SQLALCHEMY_TRACK_MODIFICATIONS = True
PERMANENT_SESSION_LIFETIME = timedelta(days=7)  # 设置过期时间为7天

if __name__ == "__main__":
    pass
